package nccloud.web.gl.cashflow.action;

import java.util.Map;
import nc.vo.pub.BusinessException;
import nccloud.framework.core.exception.ExceptionUtils;
import nccloud.framework.service.ServiceLocator;
import nccloud.framework.web.action.itf.ICommonAction;
import nccloud.framework.web.container.IRequest;
import nccloud.framework.web.json.JsonFactory;
import nccloud.pubitf.gl.lightgl.cfanalysis.ICFQueryService;


public class CFCaseDetailQueryAction
  implements ICommonAction
{
  public Object doAction(IRequest request) {
    String json = request.read();
    Map<String, Object> paraMap = (Map)JsonFactory.create().fromJson(json, Map.class);
    try {
      return ((ICFQueryService)ServiceLocator.find(ICFQueryService.class)).queryCFDetail(paraMap);
    } catch (BusinessException e) {
      ExceptionUtils.wrapException(e);
      return null;
    } 
  }
}